<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ScsgtbusurolEditDlg" widgetVar="ScsgtbusurolEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditScsgtbusurolTitle}">

            <h:form id="ScsgtbusurolEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{scsgtbusurolController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditScsgtbusurolLabel_scsgtbusurolid}" for="scsgtbusurolid" />
                        <h:outputText id="scsgtbusurolid" value="#{scsgtbusurolController.selected.scsgtbusurolid}" />

                        <p:outputLabel value="#{myBundle.EditScsgtbusurolLabel_habilitado}" for="habilitado" />
                        <p:selectBooleanCheckbox id="habilitado" value="#{scsgtbusurolController.selected.habilitado}" title="#{myBundle.EditScsgtbusurolTitle_habilitado}" required="true" requiredMessage="#{myBundle.EditScsgtbusurolRequiredMessage_habilitado}"/>

                        <p:outputLabel value="#{myBundle.EditScsgtbusurolLabel_fechainicio}" for="fechainicio" />
                        <p:inputText id="fechainicio" value="#{scsgtbusurolController.selected.fechainicio}" title="#{myBundle.EditScsgtbusurolTitle_fechainicio}" required="true" requiredMessage="#{myBundle.EditScsgtbusurolRequiredMessage_fechainicio}"/>

                        <p:outputLabel value="#{myBundle.EditScsgtbusurolLabel_caducidad}" for="caducidad" />
                        <p:selectBooleanCheckbox id="caducidad" value="#{scsgtbusurolController.selected.caducidad}" title="#{myBundle.EditScsgtbusurolTitle_caducidad}" required="true" requiredMessage="#{myBundle.EditScsgtbusurolRequiredMessage_caducidad}"/>

                        <p:outputLabel value="#{myBundle.EditScsgtbusurolLabel_fechafin}" for="fechafin" />
                        <p:calendar id="fechafin" pattern="MM/dd/yyyy HH:mm:ss" value="#{scsgtbusurolController.selected.fechafin}" title="#{myBundle.EditScsgtbusurolTitle_fechafin}"  showOn="button"/>

                        <p:outputLabel value="#{myBundle.EditScsgtbusurolLabel_hinvestig}" for="hinvestig" />
                        <p:inputText id="hinvestig" value="#{scsgtbusurolController.selected.hinvestig}" title="#{myBundle.EditScsgtbusurolTitle_hinvestig}" required="true" requiredMessage="#{myBundle.EditScsgtbusurolRequiredMessage_hinvestig}"/>

                        <p:outputLabel value="#{myBundle.EditScsgtbusurolLabel_hacademicas}" for="hacademicas" />
                        <p:inputText id="hacademicas" value="#{scsgtbusurolController.selected.hacademicas}" title="#{myBundle.EditScsgtbusurolTitle_hacademicas}" required="true" requiredMessage="#{myBundle.EditScsgtbusurolRequiredMessage_hacademicas}"/>

                        <p:outputLabel value="#{myBundle.EditScsgtbusurolLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{scsgtbusurolController.selected.fecharegistro}" title="#{myBundle.EditScsgtbusurolTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditScsgtbusurolRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.EditScsgtbusurolLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{scsgtbusurolController.selected.observaciones}" title="#{myBundle.EditScsgtbusurolTitle_observaciones}" />

                        <p:outputLabel value="#{myBundle.EditScsgtbusurolLabel_scthtbmodalidaid}" for="scthtbmodalidaid" />
                        <p:selectOneMenu id="scthtbmodalidaid" value="#{scsgtbusurolController.selected.scthtbmodalidaid}" required="true" requiredMessage="#{myBundle.EditScsgtbusurolRequiredMessage_scthtbmodalidaid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scthtbmodalidaController.items}"
                                           var="scthtbmodalidaidItem"
                                           itemValue="#{scthtbmodalidaidItem}"
                                           itemLabel="#{scthtbmodalidaidItem.scthtbmodalidaid.toString()}"
                                           />
                            <f:converter binding="#{scthtbmodalidaConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditScsgtbusurolLabel_scthtbdatosgenid}" for="scthtbdatosgenid" />
                        <p:selectOneMenu id="scthtbdatosgenid" value="#{scsgtbusurolController.selected.scthtbdatosgenid}" required="true" requiredMessage="#{myBundle.EditScsgtbusurolRequiredMessage_scthtbdatosgenid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scthtbdatosgenController.items}"
                                           var="scthtbdatosgenidItem"
                                           itemValue="#{scthtbdatosgenidItem}"
                                           itemLabel="#{scthtbdatosgenidItem.scthtbdatosgenid.toString()}"
                                           />
                            <f:converter binding="#{scthtbdatosgenConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditScsgtbusurolLabel_scsgtbrolesid}" for="scsgtbrolesid" />
                        <p:selectOneMenu id="scsgtbrolesid" value="#{scsgtbusurolController.selected.scsgtbrolesid}" required="true" requiredMessage="#{myBundle.EditScsgtbusurolRequiredMessage_scsgtbrolesid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scsgtbrolesController.items}"
                                           var="scsgtbrolesidItem"
                                           itemValue="#{scsgtbrolesidItem}"
                                           itemLabel="#{scsgtbrolesidItem.scsgtbrolesid.toString()}"
                                           />
                            <f:converter binding="#{scsgtbrolesConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditScsgtbusurolLabel_scittbfadeceid}" for="scittbfadeceid" />
                        <p:selectOneMenu id="scittbfadeceid" value="#{scsgtbusurolController.selected.scittbfadeceid}" >
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scittbfadeceController.items}"
                                           var="scittbfadeceidItem"
                                           itemValue="#{scittbfadeceidItem}"
                                           itemLabel="#{scittbfadeceidItem.scittbfadeceid.toString()}"
                                           />
                            <f:converter binding="#{scittbfadeceConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditScsgtbusurolLabel_scittbescunid}" for="scittbescunid" />
                        <p:selectOneMenu id="scittbescunid" value="#{scsgtbusurolController.selected.scittbescunid}" >
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scittbescunController.items}"
                                           var="scittbescunidItem"
                                           itemValue="#{scittbescunidItem}"
                                           itemLabel="#{scittbescunidItem.scittbescunid.toString()}"
                                           />
                            <f:converter binding="#{scittbescunConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{scsgtbusurolController.save}" value="#{myBundle.Save}" update="display,:ScsgtbusurolListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,ScsgtbusurolEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="ScsgtbusurolEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
